home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
70436
/
70436.xpi
/
chrome
/
auron.jar
/
content
/
common.js
< prev
next >
Wrap
Text File
|
2010-01-07
|
1KB
|
43 lines
/**************************************************************
* This JavaScript function's second argument is *
* Loaded in the same tab if activated with the left *
* Mouse or loaded in a new tab when activated *
* The middle button of the same. *
**************************************************************/
/*** No windows have been popped up yet ***/
var currOpened = 0;
function auron_open(event, url)
{
/*** If button Event ***/
if (event && event.button != 0)
{
/*** Open in a tab (disabled) ***/
//getBrowser().addTab(url);
/*** do nothing more ***/
}
else
{
/*** if Window is already opened ***/
if (currOpened > 0)
{
/*** close opened window ***/
newWin.close();
/*** reset the counter ***/
currOpened = 0;
}
/*** open in the same browser window (disabled) ***/
//loadURI(url);
/*** Pop up in a new window 500x570 no scrolling, no address bar ***/
newWin = window.open(url,'_gadget1','location=0,status=0,scrollbars=0,width=500,height=570');
/*** increase the counter ***/
currOpened++;
/*** Focus new window ***/
newWin.focus();
}
}